<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>懒加载</title>
  <script src="./lazy.img.js"></script>
  <style>
    img{
      display: block;
      width: 300px;
      height: 300px;
      margin: 10px 0;
    }
  </style>
</head>
<body>
<img class="lazy-img" data-src="https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1999921673,816131569&fm=26&gp=0.jpg" alt="">
<img class="lazy-img" data-src="https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3206689113,2237998950&fm=26&gp=0.jpg" alt="">
<img class="lazy-img" data-src="https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3228549874,2173006364&fm=26&gp=0.jpg" alt="">
<img class="lazy-img" data-src="https://dss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2496571732,442429806&fm=26&gp=0.jpg" alt="">
<img class="lazy-img" data-src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=868855991,3879879972&fm=26&gp=0.jpg" alt="">
</body>
</html>
